<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head>
    <base href="<%=basePath%>" />
    <title>Heat Meter Information</title>
    <script type="text/javascript">
		var path = "<%=basePath%>";
	</script>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>beshs/css/content.css" />
	<script type="text/javascript" src="<%=basePath%>resources/jquery/jquery-1.7.2.min.js"></script>
	<!-- 用户访问菜单路径 -->
	<jsp:include page="/resources/usertrace/common-uservisit-reference.jsp" />
  </head>
  
  <body>
  	<div class="content_all">
  		<!--导航条-->
  		<div class="insertinfo_table">
      		<table width="100%" border="0" cellspacing="0" cellpadding="0">
        		<tr>
          			<th>City：</th>
          			<td>
          				<s:property value="pageCityMap.get(heatMeter.provinceCityID)" />
		          			-
		          		<s:property value="pageCityMap.get(heatMeter.capitalCityID)" />
		          		<s:if test="pageCityMap.get(heatMeter.districtCityID)!=null">
		          			-
		          			<s:property value="pageCityMap.get(heatMeter.districtCityID)" />
		          		</s:if>
          			</td>
          			<th>Project：</th>
          			<td><s:property value='project.projectName' /></td>
        		</tr>
        		<tr>
          			<th>District：</th>
          			<td><s:property value='community.communityName' /></td>
          			<th>Building：</th>
		          	<td><s:property value='building.buildingName' /></td>
        		</tr>
        		<tr>
        			<th>Shared Area：</th>
		          	<td><s:property value='shareArea.areaName' /></td>
		          	<th>Calculation Relationship：</th>
		          	<td>
		          		<s:if test="heatMeter.calculateType=='add'">Add</s:if>
		          		<s:elseif test="heatMeter.calculateType=='subs'">Reduce</s:elseif>
		          	</td>
        		</tr>
        		<tr>
		          	<th>Heat Meter No.：</th>
          			<td><s:property value='heatMeter.meterNo' /></td>
          			<th>Heat Meter Model：</th>
		          	<td><s:property value='heatMeter.meterType' /></td>
        		</tr>
        		<tr>
        			<th>Manufacturer：</th>
          			<td><s:property value='heatMeter.produceFactory' /></td>
          			<th>Production Date：</th>
          			<td>
          				<s:date name='heatMeter.produceDate' format='yyyy-MM-dd' nice='false' />
          			</td>
        		</tr>
        		<tr>
          			<th>Pipe Size：</th>
          			<td>DN<s:property value='heatMeter.pipeDiameter' /></td>
        			<th>Heat Meter Aperture：</th>
          			<td>DN<s:property value='heatMeter.meterDiameter' /></td>
        		</tr>
        		<tr>
		          	<th>Installation Position：</th>
          			<td>
          				<s:if test="heatMeter.installPosition=='enter'">Supply Water</s:if>
          				<s:elseif test="heatMeter.installPosition=='exit'">Return Water</s:elseif>
          			</td>
        			<th>Installation Environment：</th>
          			<td>
          				<s:if test="heatMeter.installEnvironment=='well'">Well</s:if>
          				<s:elseif test="heatMeter.installEnvironment=='ditch'">Ditch</s:elseif>
          				<s:elseif test="heatMeter.installEnvironment=='store'">Store</s:elseif>
          				<s:elseif test="heatMeter.installEnvironment=='platform'">Platform</s:elseif>
          			</td>
        		</tr>
        		<tr>
		          	<th>Installation Date：</th>
          			<td>
          				<s:date name='heatMeter.installDate' format='yyyy-MM-dd' nice='false' />
          			</td>
          			<th>Installation Picture：</th>
          			<td>
          				<script type="text/javascript">
	          				function downloadAttach(fileMappingUID) {
	            				window.location = path + "beshs/fileMappingAction!downloadAttachFile.do?fileMappingUID="+fileMappingUID+"&date="+new Date();
	            			}
          				</script>
          				<s:if test="attachFileMap != null">
	          				<p class='fileName_load_txt'>
	            				<a href="javascript:downloadAttach('<s:property value='attachFileMap.id' />')"><s:property value="attachFileMap.orFilename" />.<s:property value="attachFileMap.fileType" /></a>
	            			</p>
            			</s:if>
          			</td>
        		</tr>
        		<tr>
          			<th>Remark：</th>
          			<td colspan="3" style="white-space:normal; word-break:break-all; word-wrap:break-word;">
          				<s:property value='heatMeter.remark' />
          			</td>
        		</tr>
       	 		<tr>
          			<td colspan="4" align="center" style="border:none;">
          				<input name="okConfirmBtn" type="button" value="Return" onclick="javascript:parent.layer.close( parent.layer.getFrameIndex(window.name));" class="s_btn" />
            		</td>
        		</tr>
      		</table>
  		</div>
	</div>
	<div class="clear"></div>
  </body>
</html>
